package com.scujj.service;

import com.scujj.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@FeignClient("service-user")
@Service
public interface UserService {
    @GetMapping("/user")
    Result getUserByToken(@RequestHeader Map<String, String> map);

    @GetMapping("/user/id")
    Result getUserByIdList(@RequestParam List<Long> id);

    @PutMapping("/user/useMoney")
    Result useMoney(@RequestBody Map<String, Object> map);

    @PutMapping("/user/addMoney")
    Result addMoney(@RequestBody Map<String, Object> map);
}
